projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d4cf0
)
Allow NULL as 'icon_widget' in gtk_tool_button_new()
author
Javier Jardón
<jjardon@gnome.org>
Tue, 27 Apr 2010 01:26:11 +0000
(
03:26
+0200)
committer
Javier Jardón
<jjardon@gnome.org>
Tue, 27 Apr 2010 01:26:11 +0000
(
03:26
+0200)
This completes the patch of
commit
b8ec73a52fe3dc3012db78f45bfcafa2cb3e14ae
gtk/gtktoolbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtktoolbutton.c
b/gtk/gtktoolbutton.c
index e8a6eca90eb30aa9b4f6af54a48a4ab7fe861b98..422540168f4d12804d142c7e3392839885a58c7f 100644
(file)
--- a/
gtk/gtktoolbutton.c
+++ b/
gtk/gtktoolbutton.c
@@
-943,7
+943,7
@@
gtk_tool_button_new (GtkWidget *icon_widget,
{
GtkToolButton *button;
- g_return_val_if_fail (GTK_IS_MISC (icon_widget), NULL);
+ g_return_val_if_fail (
icon_widget == NULL ||
GTK_IS_MISC (icon_widget), NULL);
button = g_object_new (GTK_TYPE_TOOL_BUTTON,
"label", label,